<?php
/**
 * Created by PhpStorm.
 * User: 84071
 * Date: 2017-09-07
 * Time: 15:44
 */
namespace app\common\validate;
use think\Validate;
class OrderMake extends Validate{
    protected $rule =   [
        'uid'  => 'require|number',
        'oid'  => 'require',
        'aid'  => 'require|number',
        'resid'  => 'require|number',
        'vipuid'  => 'number',
        'vipstatus'  => 'number',
        '__token__' => 'token',
    ];

    protected $message  =   [
        'uid.require' => '表单填写错误！',
        'uid.number' => '表单填写错误！',
        'oid.require' => '表单填写错误！',
        'aid.require' => '请选择要预约的课程！',
        'aid.number' => '请选择要预约的课程！',
        'resid.require' => '请填写地址！',
        'resid.number' => '请填写地址！',

        'vipuid.number' => '请选择老师！',
        'vipstatus.number' => '确认信息错误！',
        '__token__.token' => '已超时，请重新提交！',

    ];
    protected $scene = [
        'add' => ['uid','oid','aid','resid','vipuid'],
    ];
}